<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			#container{
				display: flex;
				height: 500px;
				flex-flow: row wrap;
				justify-content: flex-start;
				width: 80%;
				margin: 0 auto;
				border: 1px solid #00FFFF;
			}
			#container div{
				width: 100px;
				height: 100px;
				margin: 10px;
				background-color: crimson;
				
			}
			/*.classorder{
				order: -1;
				flex-grow: 2;
			}
			.shrik{
				flex-shrink: 0;
				flex-basis: auto;
			}*/
			
			.flex{
				flex: 1 1 auto;
				align-self: baseline;
			}
		</style>
	</head>
	<body>
		<div id="container">
			<div id="d01">1</div>
			<div id="d02">2</div>
			<div id="d03">3</div>
			<div id="d04">4</div>
			<div id="d04">5</div>
			<div id="d04">6</div>
			<div id="d04" class="flex">7</div>
			<div id="d04">8</div>
		</div>
	</body>
</html>
